Fix winding order detection for degenerate zero-area polygons.

Fixes #1305. /cc @jasondavies