Fix bug in parameter validation, empty arg should be remove from args li...

When using a forcescheduler Stringparameter the option "required" option is not taken account as the args  length is always bigger than 0.