Issue #71: added range check

See Issue #82. Avoids crashing when the professor ID of the course is
not included in the vector of professor ID's passed to the schedule.