Fixes a form issue which caused a crash when the form was submitted to be emailed and it included a 'file upload' control (email attachment)
(cherry picked from commit f4238ab)