MODULES-196 Maven artifact download fails if configured repository URL does not end with slash
Fix possible NPE if the null class loader is searched