Highlight selected courses

Fixes the handling of the section isSelected() flag.