Remove lessons with no topics from the sidebar

It doesn't make sense to display a lesson with no content, and attempting
to do so caused errors, so it's best to just filter them out.