b324abefe5
This could theoretically happen for a fully degenerate polygon
Fixes https://gitlab.com/kicad/code/kicad/issues/12120
(cherry picked from commit 5a37211fdb)