Fix Handshake Complete Event

Don't publish event if handshake fails.

INTEXT-39 SockJS Over WebSockets