inventory: Fix traceback on startup