Handle unexpected non-integer more_messages in session state. (@Hodgestar)