thermal: spear13xx: checking for NULL instead of IS_ERR()