better error message for vector on index out-of-bounds for empty vector