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