window-title: Keep a weak ref on the document

To cleanup the pointer and doc_title when the document is destroyed.
Fixes a crash when a new document is added to the window.

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