Check if the notification permission is granted