ensure the attribute name string is initalized before using it (closes #16839)
merge heads