events: do not accept NaN in setMaxListeners