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