[EventDispatcher] Added check of event dispatcher class in RegisterListenersPass