fixed an error with chatlog if only a space-character was sent to chat