hugetlb: fix handling of parse errors in sysfs