Not getting a filename looks like a contract violation in Gtk+ to me. Still Dia would be crashing, instead simply go back to the dialog. (cherry picked from commit cfc68109)