Update material cost when quantity on hand is zero. @notrinos.