event: maxListeners must be a positive integer

Then I changed condition checking in emitter.setMaxListeners.