[PATCH 4.14 56/77] hwmon: (coretemp) Check for null before removing sysfs attrs