Update DOMDocument2.php

fix groupsToNodeList