Fix a bug that caused a crash if a websocket server sent a empty string.