Fixed bug with inserting a chat with an empty string.