Catch exception on isGranted()