That’s it. Both for the import script and the code that creates topics from embeds. It’s intentional, but maybe shouldn’t allow topics to be created with 0 characters in the title.
Off topic, but one trick is to read code as though it’s a weird form natural language. Eventually it starts to make sense. That and open the codebase in an IDE to make it easier to search.