Fix computation of update candidate (bnc#834858)

Update candidate must come from the highest priority repo among all
available update candiates, not to the highest priority repo at all.
changes 12.16.5 (0)