[lib/agsxmpp] fixed a nullref exception in agsxmpp