Fix possible crash before cleanup function was not set for collision replication.