Remove unnecessary usage of getAttributeNode(). Fixes #12072.