Fixes issue #895

Spatial constraint not being cleared when all layers are removed.
Merge pull request #941 from aodn/issue-895

Fixes issue #895