build: fix corner case when extracting i18n tokens from templates