[PATCH 4.14 320/338] hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling