Add checks to ensure that a null string always fails validation on nonEmpty, minLength, maxLength and pattern constraints.
Add requires() to parameters on text, minLength, maxLength and pattern to ensure that parameters are valid and non-null.
Add specs for above.
Merge pull request #1743 from wsargent/1742-fix-npe-in-form-fill

Check for nulls in string validation