Don't attempt to build the cache if the project repo is empty
Attempting to import an empty repo causes Repository#build_cache
to fail with a `nil Exception. This fix prevents that from happening.
Attempting to import an empty repo causes Repository#build_cache
to fail with a `nil Exception. This fix prevents that from happening.