Handles the case where maxListners is undefined