Check if Preference is initialized before interacting

Test: manual
Test: adb shell am start -a
com.android.settings.security.SECURITY_ADVANCED_SETTINGS

Bug: 213182385
Change-Id: I95f628c4c4514511f1d830e0e6032e025eebc86b
1 file changed