check for NULL iri in add_url()