LI tags sometimes not closed

Conditional introduced in commit 1826893 to allow specifying a custom
line break for excerpts included the </li> tag inside just one branch