Fix for JENKINS-13872

Add options for handling the error cases in the parameter factories,
In case of Counter factory when the from, to and step do not form a closed set.
File build factory when there are no files found in the workspace.

https://issues.jenkins-ci.org/browse/JENKINS-13872