Fix build error when defaultID not set for an item