Fix bug in CalcCurvesIntersectionPoints method.