Unguarded reference to menu in mail-mode (called from report-emacs-bug) fails when no window-system