In finally adjusting the amount to be paid to a mortgagee in case of a foreclosure, sale or redemption, the Court shall, unless in the case of costs of the suit the conduct of the mortgagee has been such as to disentitle him thereto, add to mortgage-money such costs of the suit and other costs, charges and expenses as have been properly incurred...