Add NPE check when showing error dialog.

Add NPE check when showing error dialog

Bug: 110263996
Test: make -j42 RunSettingsRoboTests ROBOTEST_FILTER=UtilsTest
Change-Id: I93d6c662ea7031a631ac8c2c33cacc974677c3d7
1 file changed