[FIXED JENKINS-26024] Allow this plugin to operate on workflows

[JENKINS-26024](https://issues.jenkins-ci.org/browse/JENKINS-26024)

Avoid making unnecessary assumptions about the type of `Job` being rebuilt which would limit the plugin’s applicability.
Yes, this class looks like legacy, this was the way we did it before there where any TransientActionFactories.