check if inventory unit is nil before destroying
its nil when its trying to destroy the kit variant