Fixed hanging during parsing document with CR/LF line endings.

The hanging occured during searching matching closing tag,
if closing and opening tags are on different lines.