Bug fix to stop recursion to run out of stack space on stream errors

Was getting these after so many stream errors:
events.js:117
      listeners[i].apply(this, args);
                   ^
RangeError: Maximum call stack size exceeded

I believe this is the appropriate fix.