Fix sidebar rendering when a sidebar item has no slides

No slides breaks since the view can't determine the "slide_key".