add document metadata to pillowtop errors

Depends on https://github.com/dimagi/commcare-hq/pull/4342
not in my opinion