Fixed Kixmpp client to handle stream completion better.