chat: fix segfault when checking origin
chat: fix segfault when checking origin

strcmp(3) segfaulted when comparing the from address to NULL.

Checking messages originated from the output account only makes sense
with groupchat. Remove the check for type of "chat".

msantos/xmppipe,msantos/xmppipe