magit-process-insert-section: new function
magit-git-insert: report error more gracefully

Adjust `magit-process-insert-section' to make that possible.