When an untranslated unit is inside a list, the following code is generated:
* <div lang="en" dir="ltr" class="mw-content-ltr"> A text which has not been translated yet. </div>
Which is parsed like this:
<ul><li><div lang="en" dir="ltr" class="mw-content-ltr"></div></li></ul> <p>A text which has not been translated yet. </p>
You can check this real example on Meta-Wiki (see unit just next “Step 5” unit).
I think the easiest way to solve this is to remove the carriage return after the div opening tag to avoid any new line which would break the wikitext list syntax.
Introduced with: T254484: Tag untranslated translations units with lang and dir attributes