Temporary fix to handle notification-based crash. This should probably ultimatly be refactored to use the support library and compatible notifications.