embed: Handle the password dialog being deleted

https://bugzilla.gnome.org/show_bug.cgi?id=700716