Throw an error if no package name is provided by the app when needed

Avoid crashing system server if a calling app does not provide a package
name to broadcastIntent, instead throw an exception back.

Bug: 36452829
Test: Devices boots, apps work
Change-Id: Ie67ad4b631f399e674449e0787ed8fab47b89cb6
(cherry picked from commit 674702f0f99091c86bb3eb66572c88304de38a6b)
1 file changed