EZP-22398 : purge imagealias cache does not remove the aliases in xml attribute data_text

You can't remove DOMNodes from a DOMNodeList as you're iterating over
them in a foreach loop
Though, making a queue of items to remove seems to work

Link: https://jira.ez.no/browse/EZP-22398