Handle "ValueError" exception in "searchDatabase" component.

Closes #247.