Fix condition where repo_priority is run against missing repo

check if `rhel6_repo` exists before querying its priority