NXP-8965: refine the versioning options widget mode, to avoid display when document is not versionable or is a folder