Handle websocket mismatch error when connecting through proxy

When connecting through a proxy, websocket handshake should complete if the server is CORS enabled.

https://github.com/ariya/phantomjs/issues/11419