JSCBC-230: Ensure JSON parsing succeeds during error building.
JSCBC-230: Ensure JSON parsing succeeds during error building.

Change-Id: Ic2313aa5414b1f23943d90a09442e4702e202afe
Reviewed-on: http://review.couchbase.org/52931
Reviewed-by: Mark Nunberg <dab05a0fe859c5cb93882b2a75a0d613501b07be@couchbase.com>
Tested-by: Brett Lawson <c8c4369773d7d7226e031f0c4af62e3f38a08510@gmail.com>

kshmir/couchnode,brett19/couchnode,couchbase/couchnode,brett19/couchnode,couchbase/couchnode,GannettDigital/couchnode,corbinu/couchnode,brett19/couchnode,corbinu/couchnode,corbinu/couchnode,GannettDigital/couchnode,couchbase/couchnode,GannettDigital/couchnode,kshmir/couchnode,couchbase/couchnode,kshmir/couchnode