Fix logging when no rsyslog host is configured

Erlang apparently returns an IP address from calls to inet:getaddr/2
when the host is set to undefined. This broke logging on `make check`
runs on Jenkins.

BugzId: 26411