handle situations when WebSocket opening handshake was never completed; add test case for the former - fixes #7