Fixed regression from mishandling empty lines of documents with CRLF DOS line endings, ultimately causing a crash. Issue #1 on GitHub.