Bug ZK-1861: Js error when flex + visible = false