Handles the case where maxListeners is undefined