fixes #2614

added hasEventRegistration() method to EventService and MapEventPublisher.
enhanced run() and afterRun() methods.
why implement `hasEventRegistration()` when there's already another method in event service? what is the reason of duplication?