Fixed merge index mismatch if some of merging shards have unfilled shard_id and shard_count.