Ensure that empty attributes are copied properly.