Add more checks to isFilterStopped

A system app is considered as stopped only if it was initially scanned
in the stopped state (during first boot). For all other cases, a stopped
system app should not be considered as stopped, while resolving intents

Bug: 295084647
Bug: 297788394
Bug: 294330522
Bug: 296180087
Bug: 297360102
Test: manual.
Test: Follow repro steps in b/294330522
Change-Id: I21a121cae542a1381361ffec5715a6fab8040379
1 file changed