Allow query mode to be disabled when the sidebar is open
Don't enable query mode when loading a query URL