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