Merge "sched: prevent out of bound access in sched_group_energy()"