Fix take_from_inventory() to not try and take from a non existing slot.