Fix test: MaybeStopOp just returns if no main window is showing