CVE-2025-7425: clear the attribute type through the live attr argument in
xmlRemoveID() instead of id->attr, which read the xmlID already freed by
xmlHashRemoveEntry()
CVE-2022-23308: normalize the ID value in xmlRemoveID() after it is read
from the attribute instead of before, where the pointer was uninitialized