Check the Repository exists before start add DocumentsAndMedia entries