revert last changes in HtmlPageDom

calls to getNode(0) have been replaced by deprecated getFirstNode() again
to keep compatibility with SF 2.3