HPCC-12320 Added break once we find a valid component

Signed-off-by: Michael Jon Gardner <Michael.Gardner@lexisnexis.com>