Catch crash for broadcastReceiverFlow

Because the flow can be cancelled before registerReceiver,
unregisterReceiver will throw IllegalArgumentException in this case.

Fix: 315727715
Test: unit test
Change-Id: I3889ca0991eb05899449d4b626c7e8f8c5f00572
2 files changed