Re-order early return when targetPkg is null

It's possible that the target package is on removable stroage or
uninstalled with keep data. The caller should be able to get the
related info of the target with flag MATCH_UNINSTALLED_PACKAGES.
However, the caller wouldn't be able to get the valid info if we
directly filter out when targetPkg is null early.

Bug: 193864540
Fix: 187650819
Test: atest AppEnumerationTests PackageVisibilityTest
Change-Id: I7c6b2dcdb77c543e0826e5dff0ddc9f66e489033
Merged-In: I7c6b2dcdb77c543e0826e5dff0ddc9f66e489033
(cherry picked from commit a135e23fe97c5618ed04ff26d06e2a31a2d34004)
1 file changed