application, preview: Disable the gear menu while a document is loading

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