hfst-regexp2fst will compile empty files without errors, it might have at least a warning that can be turned into an error for that.