The duty of a mortgagee in possession on a sale