Eliminate exception when calculating hash of empty bitsets