Handle exception while searching in tags cloud using an invalid pattern in "searchDatabase" component.

Closes #209.