Fix exception in inventory state when the other inventory is not set