drivers/cpuidle: Move dereference after NULL test