Call `vim.treesitter.language.add()` before `get_helptags` (which triggers filetype=help). And do this in the main routine, instead of each gen/validate task.
src/gen/