Don't cast to unsigned before PERMISSION_UNINSTALLED (-1) is checked

... otherwise the check is no-op.

Found by Clang tautological-constant-out-of-range-compare warning.

Test: presubmit
Bug: 72331526
Change-Id: Ib1abfe74198440b5b60c8c3a3cbf46bca2f5b12c
1 file changed