Fix breakage of getArrayFromXPathResult