Error checking for advanced search

Part of [OOIION-1413](https://jira.oceanobservatories.org/tasks/browse/OOIION-1413)