ACPI: thermal: Check whether cooling device exists before unregistering