hfs: fix coverity-found null deref