Bug 4850: Fix follower out-of-sync logic wrt replicatedToAllIndex