If a label in the table has no associated vertices, it will have a timecourse of all 0s in the ptseries file. Since such a timeseries has a stdev of 0, the correlation formula divides zero by zero, and results in NaN values in the pconn. Using the -legacy-mode flag is one way to exclude these labels (but also not give any warning if a label includes vertices that don't contain data), but it means that for individualized parcellations, if a parcel wasn't detected in a subject, the indices of that subject's parcellated files won't match the other subjects.
It looks like we use freesurfer tools to convert the aparc to gifti label format, so it may not be doing the "drop unused labels" behavior that we specify when converting the label volume files to workbench format. This could result in many extra (unused) labels in the table of aparc.
Also, Destrieux is a parcellation based on folding patterns (gyri, sulci), and as such is not a very relevant parcellation for analyzing functional data (or other areal features), as it will combine data across functionally different areas, and split some functional areas between gyral vs sulcal labels, etc. We recommend the HCP MMP 1.0 parcellation for analysis of functional or other areal data.
Tim