Rearrange test of count update in TS_VEC_NEW to avoid possibility of arithmetic overflow