Verify that the caller has permissions for the icons it provided.

Bug: 277207798
Test: manual testing: first reroduce the issue as described in the
 ticket then check that it is not reproduceable after the fix.
Merged-In: I08992550507572a4878c501184360a58adef53ad
Change-Id: Ic8cb75ed586e94c5895065f772bfb21013396dd0
1 file changed