Section 58. If the whole or any portion of a tax on land remains unpaid after it is due, the holder of a mortgage upon the land may pay to the collector such amount as is due and unpaid, with the accrued charges and expenses; and the amount so paid may be added to the mortgage debt.