[JENKINS-20647] Work around JavaScript error

[JENKINS-20647](https://issues.jenkins-ci.org/browse/JENKINS-20647)