vppinfra: fix sparse_vec_index() returning non-zero index for some nonexistent elements