Fix null-pointer on missing XMPP connections