Fix crasher with xmpp4r.