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