[i18ncube] fix crash due to duplicated messages in generated schema.pot
Add a test case and fix regression introduced in e713c47a993d.
Relates to #2811282
Experiment with the search bar. Try queries like "card sometextualcontent" or"card wikiid index" or "345".