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

- test for null references

Change-Id: Iff6efc92cc16ada9f6e8f057ba9c23a241e62000
1 file changed