Only run compareSources if there are enough entries in the vector.
Merge pull request #6123 from bbockelm/xrootd-check-size

Only run compareSources if there are enough entries in the vector.