Fix fatal error when XMPP is not available