Fix a failure to start DTLS in some situations.