[JENKINS-14144] only register buildWrapper when required

adding a buildWrapper trigger project.save() that has impacts on job history plugins.
This is only a workaround, to register (technical) buildWrapper only when required