Don't attempt to resize vector to negative size.