Fix bug preventing Emacs closing when speedbar not open.