Cleanup Document::GetElementsByName.