gtk: Make BrowserWindow::HasModalDialog work.

Fixes atom/atom#2658.