Fixed a bug in check_for_messages()

Occasionally, SquirrelChat would misplace the cursor used for keeping
track of it's position in the messages buffer when it was separating all
the messages received from the server.