Fix an NPE in PackageManagerService (introduced by ag/3819668)

Since PackageParser.generateApplicationInfo may return null, we need a null check after it.

Bug: 73134482
Bug: 78678911
Test: manually tested on ARC/ChromeOS and confirmed NPE had gone away
Change-Id: I7f91b2cbe29ab7c20758f97501c49e1401ee1e7e
1 file changed