Fixed corner case when XMPP message is empty