Ensure empty vectors don't use subscript operator.