What's this? Is this to handle a uri of `""`? If so then it then turns it into `None` which is almost certainly not what we want.