Fix issue when invalid url passed as argument for http loader.