Added protection to InventoryMonitor constructor