Fix regression where using TLS for replication did not work. Introduced in v1.85.0.