Fixed issue #7305: Error when running a survey with regex validation on text fields and debug mode enabled