fix longstanding edge case for form validation

http://manage.dimagi.com/default.asp?91563
Error was that simply wrapping an invalid xform can raise an `XFormError`; get around this by validating the source directly.