(bugfix): Fix incorrect color parsing for strokes

The parsing of stroke colors failed when the color was a gradient
with color stops containing positions.