If the domain_uuid is null then use a random uuid to prevent an error and allow domain_uuid is null SQL to still run