Some time ago, SL Baur wrote...
|+
| I've applied half of Kirill's patch and #if 0'ed out the `if' I
| changed and he reverted. There'll be a snapshot made tonight.
|-
Oops. The comment suggested that it is called with <0 from delete
console, but now I see it's wrong. Anyways, what's good finding
another frame for minibuffer on the console being deleted? Your
fix is right.
Kirill