[PATCH OLK-5.10 v2] sched: smart_grid: fix potential NULL pointer dereference