ColorSlider.cs: skip drawing chapter marks with invalid value