If a tax has been levied by the disincorporated city and remains uncollected, the county tax collector shall collect it when due and pay it into the county treasury on behalf of the designated successor agency or county to wind up the affairs of the disincorporated city.