SERVER-10270 SERVER-10177 Fix failing jstests/apitest_db.js

Restore the exception object field that the test is looking for.