Changed behavior of ByteVector::toNumber() when overrun

Changed ByteVector::toNumber() so as not to fail when the data is shorter than expected.
This behavior is same as it used to do at version 1.8.