Exclude any text content inside a cursor node the document text body

A cursor cannot contain valid document text, and should never be returned
in text node or text elements collections.
Merge pull request #303 from peitschie/ignore-cursor-content

Exclude any text content inside a cursor node the document text body