[AE] Prevent crash when launching activity's task id is invalid

If we cannot get a valid task id for the launching activity, then we
fall back to treat it as a non-activity context. This prevents crash
when creating task fragment with invalid task id.

Bug: 391438117
Test: atest SplitControllerTest  ActivityEmbeddingLaunchTests
ActivityEmbeddingLifecycleTests ActivityEmbeddingPolicyTests
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b542b3a87203a99880f3ed2150478d3d8cd9b824)
Merged-In: I1ee93340ce8d7af776592182cb5240bd62e48736
Change-Id: I1ee93340ce8d7af776592182cb5240bd62e48736
1 file changed