Fixed a problem with categories showing for courses that existed but weren't published yet.