Make sure if the screen is unlocked while preparing a message to cancel the notification