fixed ArrayIndexOutOfBoundsException when LatestVersionOf#getMatching

fixed ArrayIndexOutOfBoundsException when sugin LatestVersionOf#getMatching
on IApplication without embedded cartridgeembedded