Bugfix: Keep the issue of a row when the next row is refused
Description
A row that the import reported as an error was lost from the report when a later row of the same batch was refused after the target had already written to the database: the refusal rolls back the savepoint of that later row, and the issue of the row before it had not been written yet. The runner now writes the pending issues before it opens the savepoint of a row.
Impact
Only the report of an import: errors that were missing from it are listed now. Nothing that was imported changes.