Fix null type error when toggleSidebar is called without an argument.

This fixes issue #4 - sidebar X will not close the bookmarks or history sidebars