added assertion for calling DialogWrapper.showAndGet() in modal dialogs only;
replaced "dialog.show(); dialog.isOK()" with showAndGet()