Bugfix: return the DOMNodeList, if $as_array is false