[Bug 36876] New: Incorrect check for bad points in draw_poly()