SIGABRT when adding non-whatsapp chat

Adding a new IRC-chat got me SIGABRT:
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid

This patch checks that the chat belongs to whatsapp-purple.