Add a value reset operation in the error handling.
Add a value reset operation in the error handling.

Without this fix, the regression test fails with debug-builded binary.

bwtakacy/pg_bulkload,ooyamams/pg_bulkload,ooyamams/pg_bulkload,bwtakacy/pg_bulkload,bwtakacy/prev_pg_bulkload_repo,ooyamams/pg_bulkload,bwtakacy/pg_bulkload,bwtakacy/prev_pg_bulkload_repo,bwtakacy/prev_pg_bulkload_repo