Fix crash when localize function is used with an empty string