Most styles don't have a background for ScrollView, so we must check whether it is null before setting its visibility