[Settings] Add NPE protection

Bug: 363633142
Change-Id: Ie68d599b79f1247ded2b46afec2f214e23237731
Test: manual
Flag: EXEMPT bugfix
1 file changed