resolved: add missing error code check when initializing DNS-over-TLS