Fix #642.
If an index is updated during a replication, the replication process is
aborted.