fix for GPMONGODB-243 "Unable to render document as JSON"