Check if a given event has registered any listeners. If not the script
is not defined in the composer.json file
Don't throw exception in the doDispatch method.
Added a new method to check if an event has any listeners registered.