Right so the logic that goes along with this line in particular is that if the first entity is completed  then we don't need to do a repair, the loop will otherwise go down the partial list until it reaches a completed entity. Then it will start rolling up the changelog from there.