Add hack to get around the "" -> java.net.URL exception (JENKINS-18229)
Added logging of conversion error
Removed temp variable
Merge pull request #26 from milkboy/JENKINS-18229

[JENKINS-18229] Add hack to get around the "" -> java.net.URL exception 
Yup hack but no other way to fix that :-)