Fix initial index when no files exist at the iterator creation