Fix null type error when toggleSidebar is called without an argument. Fixes issue #4 - sidebar X will not close the bookmarks or
history sidebars