fix bug leading to losing of hash entries in hash_iter_next
hash: removed useless condition in hash_iter_next

Situation ((entry != NULL) && (i >= table->length)) can never happen.