Fixed thash iterator so it does not crash if the hash table is empty