[PATCH] cpufreq: qcom-hw: Add missing null pointer check