Fix replicationFeedSlaves() off-by-one bug.

This fixes issue #1221.