Fix a seg fault when starting a replication that immediately fails