Fix condition where repo_priority is run against missing repo

Check if `rhel6_repo` exists in all repos before querying its priority