Backported fix for bug 414051: Minimized view restored when starting a new debug session