SocketIOTransportXHR: fixes a crash in packet parsing