Adding nullcheck when getting app restrictions

Bug: 20085185
Change-Id: I782a79a331a2d58287e34e24ed7730207bf260cb
1 file changed