No more errors with no listeners attached

Fixed an error which would occur when an action was dispatch but not
listener for the action was registered before
med