Guard against resetting indexing if indexing is not finished.