[COOK-4299] Avoid setting attributes without precedence