DoT: do not crash resolver on TLS context creation failure
The resolver's code was not ready to failures when trying to establish a connection via TCP-based transports (e.g. when creating TLS contexts before establishing a TLS connection).
This commit fixes that.
Closes #4572 (closed)