hatch: avoid invalid vector in contour testing