Stop crashing when reading websocket header.