Simplify the assembling of SQL in XMLHashSearch(). Add check for empty condition list.
Simplify the assembling of SQL in XMLHashSearch().
Add check for empty condition list.

djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test,djoudi/otrs-gitimport-test