Fix for incorrect notification when no permissions are asked.