Where the parties purport a sale of specific goods, and the goods without the knowledge of the seller have perished in part or have wholly or in a material part so deteriorated in quality as to be substantially changed in character, the buyer may at his option treat the sale:
(1) As avoided; or
(2) As valid in all of the existing goods or in so much thereof as have not deteriorated, and as binding the buyer to pay the agreed price for the goods in which the ownership will pass, if the sale was divisible. (n)