Fix crasher with xmpp4r.
Merge pull request #6 from PatrickTulskie/master

Fix crasher with xmpp4r.