Trac #9878: fix incorrect function in Hash.c

This commit fixes keysHashTable function.