Fix an error when a folder is missing in the repository.