Fixed calculate course grade that was picking up marking periods
that might not be associated with the course.