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

Returns empty value of corresponding type in case of empty string.
Actually version two would be slightly faster, if the speed is more critical in this case