[PATCH 5.15 064/120] hwmon: (coretemp) Check for null before removing sysfs attrs