Fixed two bugs with HashSet
Fixed two bugs with HashSet

- Return an invalid iterator when HashSet is empty
- Fixed not traversing the last element when finding a used slot

apetrone/gemini,apetrone/gemini,apetrone/gemini,apetrone/gemini,apetrone/gemini