Call to a member function getFileUri() on null in ImageItem::presave()
I a similar issue on a previous migration, I found that a core issue sometimes causes that error.

The patch submitted fixed the problem on my case.