HalfedgeMesh: Fix is_flip_safe

Thanks for Martin for catching this.  The unit test now verifies that
flips happen (tshirt?), so it will catch similar bugs in future.