Add null check before trying to give appOps to package.

Test: none
Bug: 164209140
Change-Id: I64184e9d035be538684c42c85c869f09b048069f
1 file changed