Fix for #66.  Added verification for repository metadata information.

Added verification for repository metadata information, before actually getting the repository metadata to avoid the exception thrown.