Fixed bug where some courses do not have any subject.