application: Don't access unitialized variable in shutdown

Guard all usage of this._mainWindow from being used when uninitialized in the shutdown vfunc. This happens e.g. when running with the --version command line flag.

Fixes #522 (closed)

Merge request reports

Loading