Fix visibility issue and improper variable assignment in wpsc_element_is_visible()