add document metadata to pillowtop errors

Depends on https://github.com/dimagi/commcare-hq/pull/4342