Bug 890755: sidebar.js throws TypeError ("sidebar is null") when browser dialogs are closed