Fixed: Unhandled exception when other modal window is up

The issue may happen if any other modal window is shown (ie, Windows query about running application background task) at the moment of showing your dialogue