WebSocketReader: fix handling of BUFFER_UNDERFLOW