[FIXED JENKINS-22146] now preventing infinite recursions for circular project dependencies.

Hi,
Here's a proposed patch for, at least, not stack-overflowing when the pipeline contains projects with trivial (project1 -> ... -> project2 -> ... -> project1) or tricky (esp. when using the join plugin) circular dependencies.
Thanks for considering,
Regis