[FIXED JENKINS-19976] Merged #1054: fix class loading from dynamically installed optional dependencies.