Avoid reentrancy problem where previousTriangle value changes while containsOrIsVertex() call is taking place resulting in returning the wrong triangle.