Do not crash test on invalid pending intent

Instead of having an assert in the BroadcastReceiver, which runs in a
separate thread which crashes the test process on assertion failure,
move it to the test thread.

Bug: 345804242
Test: atest
Change-Id: Ib10cb1464918bcb978bdd9fae378427cb393f2f3
1 file changed