Catch potential PackageManager error