Hide sidebar if #sidebar has no children

I test it on redmine 2.3.4. Without this fix, redmine will show some extra blank on the right side if the page doesn't have sidebar.