Fix bugs in eventloop
- Fix ghost windows with modal dialogs. Dummy windows (zero size) appear in expose mode when not properly closed. This happens through e.g. wxWindowDisabler and wxSafeyield, common with DRC/ERC checks.
- Logic fix for higher modal stacking in dummyWindow release.