The master of a vessel may hypothecate the vessel, freightage, and cargo, and sell part of the cargo, in the cases prescribed by the articles on bottomry and respondentia, and in no others, except that the master may also sell the cargo, or any part of it, short of the port of destination, if it is found to be of such perishable nature, or in such damaged condition that if left on board or reshipped it would be entirely lost or seriously endanger the interests of its owners.