Fixed empty courses with no modules causing an index out of bound exception