Fix undefined variable reference when decoding dbcs internal error happens.