Fix bug #1077 with popping new frames from a minibuffer-only frame.