fix leaky apps

We leak installed app information if either the package or component
are specified in the query intents.

Bug: 25119046
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ide2bc83889cc90bb56b5e13a8c3ddc1ba1901be7
1 file changed