Fixed grades issue for progress page graph.

TNL-1022

@symbolist , not sure why this is showing a diff, since I merged waheed's PR into master