Create elementAttributeValues for textContent

This avoids a problem when no attributes triggered the creation of
`_elementAttributeValues` and this setting of textContent assumed that
the object was in place.