Fixed error in EventDispatcher.has().