[FIX JENKINS-25449] Form validation for label expression

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