Merge "Merge "Don't assume r.curApp is valid when finalizing broadcasts" into rvc-dev am: 33e8dc7978 am: def8dbfefc" into rvc-d1-dev-plus-aosp am: 20c2b4677b am: 7a37a4cb4d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12088000

Change-Id: I053671d9810c3e70b6f643c92efcf552cb554b15