Inconsistency between Syncgateway index and its replica

I think this is might be related to this issue: https://issues.couchbase.com/browse/CBG-2226