DRILL-1547: check value capacity only if vector is allocated