add checkXWikiPreferencesMainWiki call for main wiki in chekcDocuments