fixes #2614

added hasEventRegistration() method to EventService and MapEventPublisher.
enhanced run() and afterRun() methods.
what is the reason of accessing eventservice over nodeEngine? this class is already EventService..