Fix packageNotInstalledSecureFrp for device with nested tasks

Prevent finishing the top activities of the same leaf task twice.

Test: android.packageinstaller.install.cts.IntentTest#packageNotInstalledSecureFrp
Fix: 292176003
Change-Id: I2ba217862d7c6721c7d3c2625f697f9cc428c1ca
1 file changed