Nothing contained in this chapter shall prevent the trustee from selling the goods in his hands for the payment of the sum for which they were mortgaged, pledged or otherwise liable, at any time before the amount due to him is paid or tendered, if the sale would have been authorized by the terms of the contract between him and the principal defendant.
14 M.R.S. § 2804