Fix issue with longstanding connections

Pull request https://github.com/LearnBoost/socket.io/pull/1346 introduced an issue with long connections, because the _dataLength variable in the parser was never reset to 0.

Fix this issue by reseting the variable when the parser gets an error, closes or reaches the end of a packet.