Bingo...that was the problem. Easily countered by checking if %sub == $null before adding to the list.

Thanks to all who worked on this problem.