LPS-45596 Null safe check of boolean preferences