Fix bounds error when there is only one value in a color scale.