Fix locator visiblity check when  no selector