Upon the ordering of any of the foreclosure actions the tax collector shall be credited upon the assessment roll then in his hands with the amount charged against him on account of reassessments ordered to suit and shall be relieved of further duty in regard thereto.