Fix bug when hashing the empty string.