Fix regression: build will fail if empty repository is added.

Must confirm the repository exists before adding the repository to the build.  This is normally the case when initially populating the local repository.