Fix potential UAF in ConcatInPlace.