Fix assertion failure starting up non-persistent replication

Fixes #211.