Fixed|Client: Crash during main window construction

It was possible that the log was flushed during construction of the
main window, which lead to the log alerter attempting to access a
partially constructed object.

Now ClientWindow::mainExists() only returns true if the main window
has been fully constructed.
Merge branch 'master' of https://github.com/skyjake/Doomsday-Engine