Fix crash when invoking Form.ByLoftCrossSections with null input.

Merging [a prior pull request](https://github.com/DynamoDS/Dynamo/pull/2452) into master branch.