[cairo] Fix infinite loop in sweep-gradient code Tested with U+F1314 from var font from: https://github.com/googlefonts/color-fonts/blob/main/glyph_descriptions.md