Fix parsing lists with a single nested list at the end of the last list item.