fix send-message-chat and send-message-headline commands to work on ejabberd 13