fixed segfault  invoking InventoryState with empty slots