Handle yum edge case

Handle edge case where there are extra lines in the repoquery output.
Merge pull request #10180 from terminalmage/yum-edgecase

Handle yum edge case