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.