[PATCH]: thermal: Fix NULL pointer,dereferences in of_thermal_ functions