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

Returns empty value of corresponding type in case of empty string.
Could be shortened to just two lines as well:
```python
t = getattr(_active, "value", _default) or translation(settings.LANGUAGE_CODE)
result = getattr(t, translation_function)(eol_message)
```
but it would decrease readability IMO