validate custom data to prevent submission errors
Merge pull request #4541 from dimagi/validxml

validate custom data to prevent submission errors