Fixed so updating quantity doesn't crash if given a non-numeric value