Fix segmentation fault in `hash_has`

Fixed segmentation fault when running `hash_has` on an empty hash (see attractivechaos/klib#37)