Fix #798 "Index was outside the bounds of the array." during search. Cause - bad string parsing of package flattened dependencies.