Make GrantPermissionsActivity more null safe

Ensure that setResultIfNeeded will not throw an NPE if the calling
package or requested permissions are null

Bug: 193492800
Test: manual
Change-Id: If7da2f7923476b82c7c832572d42c7c7da5db012
1 file changed