Fix errors when repository is defined with credentials

Added null check in order to avoid errors in cases when there are credentials and getPackageRevision returns null.
Commented out logging of url in order to avoid leaking basic auth credentials in logs.
Should fix issues #2 and #3