Fixed crash when adding items to pantry from shopping list