[JENKINS-24258] Fixed broken build timeout plugin implementation

See [JENKINS-24258](https://issues.jenkins-ci.org/browse/JENKINS-24258) for details.