Bring the C and Python compute_hash functions into consistency

I doubt the situation will come up, but it's possible for makeqstrdata.py to generate a hash of zero, which qstr.c won't ever do.