fixes #763
added check if spatialConstraintcontrol exists
Review var name fix. (keeping David happy)
Merge pull request #782 from aodn/issue-763

Issue 763