Fix `#nodes_until_hr`
Fix `#nodes_until_hr`

Check if there are more nodes before calling `peek`, which
otherwise throws a `StopIteration` error.

Sometimes the document isn't perfectly formatted, in this case
a block that is never closed by a horizontal line.

dsager/article_json,Devex/article_json,Devex/article_json,dsager/article_json