[1623] Make URL protocol relative earlier

So that we are comparing the same type of URL as has been stored in the
database.

Once this has been merged we will have to clear out the related and related_datasets tables and run the import again.