Fixed crash

Fixed a bug which caused the application to crash if the user tried
removing "No courses selected" from the selected courses.