Hide sidebar icon if sidebar is not active

Only show sidebar icon if sidebar has any widgets.