Fix potential NPE when preference is null findPreference is a nullable method so we need a null-check before calling its method. Bug: 253904634 Test: atest Change-Id: I497ba76a61b19bab9602849f1aef725829193ff2