Removing the potential null object access.

Test: atest PackageManagerShellCommandTest
Bug: b/148463114
Change-Id: I8694048217908702f850d25116c8f36e5c12e79e
1 file changed