Auto-fix missing system message templates
During PR#15844, we discussed that the upgrader can fail when there are missing message templates in the database. Their absence can go unnoticed when their related features are not used.
Since the upgrader can detect missing templates, it could also automatically re-create them.
Do we have all the required metadata in order to re-create them automatically?