Fix bug #14118555 NPE in settings app when it is launched by UiAutomator

- prevent the potential NPE

Change-Id: I428f49c4ee55fb1e8fe121b27dd12e21eced4dad
1 file changed