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 4c355690494f17c8ebdecbc8b1a1eaef21ffc0f3)
Merged-In: I854dd825bfd9a2c08851980d480d1f3a177af6cf
1 file changed