Second attempt at fixing crash when trying to show dlg with invalid
Context: Ignore failure to show dlg when UI has been dismissed as its
probably no longer relevant anyway. [issue 84].