Fixes bug that only the last item in search criteria is used

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