XWIKI-8731: Reduce the size of the log produced by a migration failure or old database not yet migrated