Ignore framework exceptions when dismissing dialogs.

Fixes http://b/2314228
1 file changed