Fixes the sidebar_collapsed resetting
What does this MR do?
This stops the new sidebar render code from running when there is no sidebar on the page. If the code did run, it would actually be resetting the cookie & therefore making the sidebar un-collapsed again. This is incorrect & the only way the cookie should be reset is if the user explicitly expands the sidebar.