Fix null value

getElementsByXpath returns value: null when xpObj === false