Catch TypeError in prof_detail view when a prof doesn't have courses. Closes #13