Fix permission comparison for apps without permissions
PackageInfo#requestedPermissions
at least back to Android 6 was documented to be null if there are no requested permissions. So I have no idea how the comparison ever worked for apps without permissions.
Closes #2525 (closed)