adding missing var declaration for variable inNext.

fixing problems with mocha globals leak errors. would be nice if this goes to a new event-stream version as well