Fix for JENKINS-16204

List JDKs even if there is only one, to ensure a value is always set.