Visit Documents UI module (VDUI) v1.1 throws NullPointerException, also failed to attach a document to a finished visit

@hpardess, the issue was solved here by @dkayiwa. You have to clone, build and use the latest SNAPSHOT of XForms to make the problem go away.