added check for hash_len after calls to hlfmt_hash ()