[DF-4218] Added safe event notifications for EventDispatcher. Added safe event notifications for ScreenSwitchListener.