Fix issue with recursive call of Curve.getIntersections().