Disable ribbon buttons when has no document (when applicable).