Handle dead frame in menu-bar-non-minibuffer-window-p. (Bug#19728)