SocketIOTransportXHR: fix possible crash