Fix error that occurs when the first operation on an empty index is the recreate task