Add defensive checks for invalid connection
Merge pull request #116 from sdelements/release/0.3.0-xmpp-room-fix

Add defensive checks for invalid connection