Fix crash when invoking Form.ByLoftCrossSections with null input.
Merge pull request #2452 from pboyer/ReferenceCurveFix2015

Fix crash when invoking Form.ByLoftCrossSections with null input