LPS-34648 UpgradeJournal fails when there is a JournalTemplate with structureId equals to zero