catch error when poly2tri shits itself