Fixes removeAllListeners after previous error correction in removeListener.
travisplexer: pr-293-osx travis ci test