Catch exception if there is no package name in the session

System server should not crash even no package name in the session.
Throws PackageManagerException instead.

Fixes: 296512508
Test: atest CtsPackageInstallTestCases
Change-Id: I17016e2ab575d012cdeb318212e579dd5b12ec65
1 file changed