Fixes bug in batch update error logging that caused some error messages
to be lost