Agency rescues competition for credit assignment among predictive cues from adverse learning conditions