2077. Where dangerous property shipped with the knowledge and consent of the carrier becomes a danger to the ship or cargo, it may be landed, destroyed or rendered innocuous by the carrier without any liability on his part except by way of general average, if any.