QLESS-2493 Merged changes from master project, commit
aef92290adbd53850337cfc2c651699764988038 which should fix the
NullPointerException.  Doing this here instead of upgrading to master
project's head, because of this issue:
https://github.com/TooTallNate/Java-WebSocket/issues/210