Fix bug in graded thread view tab in course session - ref #6589