Fix updating bookmarks tree view when a file is closed.

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