[PATCH 5.4 01/15] thermal: Fix NULL pointer dereferences in of_thermal_ functions