Fix cron validation for Jenkins>=1.558

See https://issues.jenkins-ci.org/browse/JENKINS-22550 for details about the exact same issue for the github plugin.

Shamelessly copied from https://github.com/jenkinsci/ghprb-plugin/pull/28