[FIXED JENKINS-19575] Cannot create credentials

- Should be using DomainWrapper.getUrlName() rather than trying to repeat that logic elsewhere