Fixed a crash when main window was maximized and there were plugins' window opened in the last wings session. Thanks Fonte Boa and Stem for report it. [Micheus]