Forgot a condition

We need to check to make sure that the resource type actually defines
a uri_prefix before we attempt to do this.