If MLS layer is not shown, don't query MLS

You reverted your first change where you checked the pref.