HPCC-9185 Always return a maxlength > minLength

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4273 from ghalliday/issue9185

HPCC-9185 Always return a maxlength > minLength

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>