LPS-33860 Fix error at JournalExportImportTest. Same logic as JournalTemplateLocalServiceImpl.delete

Replicate the same logic as in original JournalTemplateLocalServiceImpl.deleteTemplate.