Merge "Fix a NPE in PIA if the caller has no requested permissions." into main