Fix a NoSuchElementException when WebSocketClientHandshaker is used with HttpRequestEncoder