Fixed bug with hasEventListener() returning false for non-isOnce events.