Invalid IDs generated for fill gradients when drawing SVG