java_gen.HashValueUtils - prefixBit - remove useless hash value, add unit test

Also fix numBits==0 corner case bug discovered by unit test