Fixes returned value on error in html client and translates search texts

Returns empty string instead of null in html clients if an error occurs
Translates search texts