Fix JENKINS-20117

Switched to using
Jenkins.getInstance().getDescriptorByType(ExtendedEmailPublisherDescriptor)
instead of
build.getProject().getPublishersList().get(ExtendedEmailPublisher.class)
to get access to the descriptor.