Fixed a crash when reading an unterminated CDATA section.

Fixes #349