[RESTRICT AUTOMERGE] Do not send new Intent to non-exported activity when navigateUpTo

The new Intent was delivered to a non-exported activity while
#navigateUpTo was called from an Activity of a different uid.

Bug: 238605611
Test: atest StartActivityTests
Change-Id: I854dd825bfd9a2c08851980d480d1f3a177af6cf
Merged-In: I854dd825bfd9a2c08851980d480d1f3a177af6cf
(cherry picked from commit 89ebc8c43f7d2aeaee4fdcf667f07aa98404981d)
Merged-In: I854dd825bfd9a2c08851980d480d1f3a177af6cf
1 file changed