I think the handling here is the issue:
https://github.com/jembi/openhim-core-js/blob/master/src/contact.js#L34
The error is logged here:https://github.com/jembi/openhim-core-js/blob/master/src/reports.js#L285