Avoid infinite loops in WDFreehandTool.

NaN point may be added in FitCurve, FitCubic, so return nil in pathFromSegments.
Cancel the changes yesterday in WDBezierNode.m to avoid unknown issue about null pointer.