Fixed crashing on null TLSConfig in custom TLS