Fix to issue #362: Error is not caught if WebSocket constructor throws S...

Fix to issue https://github.com/Automattic/engine.io-client/issues/362