Fix for diagnostics window not showing when ShowDiagnosticWindowIfNeeded property was set to true.