`msg_more_count` can be undefined, and therefore evaluates to None, which makes the comparison with 0 invalid in Python 3.