Errors if a resource is registered twice