hash table BUGFIX handle correctly table without empty records
diff --git a/src/hash_table.c b/src/hash_table.c
index 6f169d2..61135e0 100644
--- a/src/hash_table.c
+++ b/src/hash_table.c
@@ -451,6 +451,12 @@
             *rec_p = rec;
         }
         i = (i + 1) % ht->size;
+        if (i == idx) {
+            /* we went through all the records (very unlikely, but possible when many records are invalid),
+             * just return not found */
+            assert(!rec_p || *rec_p);
+            return 1;
+        }
         rec = lyht_get_rec(ht->recs, ht->rec_size, i);
     }
     if (rec->hits == 0) {