Adds check for invalid removeListener arguments.
travisplexer: pr-293-osx travis ci test