provider: don't crash when fetching bad URLs

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>