bugfix for crashing while generating error messages in LengthValidator class