Fixes shouldFilterApplication usages

This change addresses one misuse of shouldFilter* where the binary logic
was inverted. It also makes the response of getPackageEnabled* and
getComponentEnabled* consistent by always throwing if a packageName is
not known to the caller.

Fixes: 145676437
Test: atest AppEnumerationTests
Change-Id: Ieaaa894a05c00c3cb3b3b2ebdf64a6948b23b475
2 files changed