Fix StackOverFlowErrorn using fixes from https://github.com/TooTallNate/Java-WebSocket/issues/190