Fixed #23196 -- Don't translate empty string as gettext metadata

Returns empty value of corresponding type in case of empty string.
Prefixing the docstring in tests with the ticket # is often helpful later: `#23196 - Empty values must stay as empty values after translation.`