Fix a nil error in inventory/vault handling