Doesn't replace uuid by the resource if the resource is nil