[PATCH 6.6 036/583] thermal: core: Fix NULL pointer dereference in zone registration error path