Fixes expand collapse bug on course outline page

STUD-2038. @cahrens @dan-f please review.