main-window: Fix a GLib warning

We forgot to clear the timeout ID when the handler was fired, which
would lead us to remove a source that does not exist anymore.

Original patch from Cosimo Cecchi for gnome-documents.