Catch TypeError in prof_detail view when a prof doesn't have courses. Cl...

...oses #13