Fixes broken functionality in form layout.
Strips nested form tags in generated forms.