Fix crash when notification is triggered on platforms not supporting notifications.