Fix issue 66

Fix for issue #66 : https://github.com/dhruvbird/node-xmpp-bosh/issues/66