Added in if statement to ensure the color we pass to the color backend is in fact a color, and not a style annotation.