Error checking for advanced search

Part of OOIION-1413
Merge pull request #75 from Bobfrat/internalServerErr

Error checking for advanced search