Fixes #1591: StringValidator is accessing undefined property