Only allow cycles that contain reject.
Maybe simpler
Merge bug26103
stable to default