Log error messages from Nethgui to both syslog and stderr.
Applied upstream patch

Translator (translate): always cast given $key argument to String. Refs #2844