JENKINS-25710 join plugin does not work with folder

Fixing JENKINS-25710