Fixed messages not being added to the chat history

Fixed messages not being added to the chat history and ClientCommandHandler not being called when sleeping (client side commands are ignored).

The same bug exists in 1.8, except that the function should be `func_175275_f` (`sendChatMessage`).