fix COUCHDB-648 - _update handler ignores "code" Test by Christian Carter This is a backport of r1177890