tab: make code of document_loading() and document_saving() clearer

No, the time is not given by a certain extra-terrestrial.
tab: make the code of document_loaded() clearer
tab: one more small cleanup in document_loaded()

Have this commit separated from the other cleanups, for git bisect. But
normally gedit_tab_get_document() returns the same document.
tab: some cleanup