If a tab is created only for a download, close it

If a tab that has just been created ends up being just a download, then
close it down. If it's the only one on the window, then make it show the
overview instead.

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