[JENKINS-19494] Make flexible publisher to work with publishers with customized Descriptor#newInstance.

This is a fix for https://issues.jenkins-ci.org/browse/JENKINS-19494 .
This request is to run tests in buildhive.

I'll merge this and release a new version as soon as the test passes.