readAttributes() works on DOMAttr representations.

For example, when we select only attributes with a XPath expression, it
is equivalent to get a collection of “DOMAttr objects”. In this case,
readAttributes() failed to read attributes because the data are not
present at the same level. This is fixed now :-).