If any treasurer dies, resigns, or is removed from office or his term of office expires after selling any tax liens on any real estate for delinquent taxes and before executing a certificate or deed for the same, his successor in office shall execute such certificate or deed in the same manner that the treasurer making such sale might have done.