guard against other elements (#1138)
guard against other elements (#1138)

* guard against other elements

* Update src/Document/TextElement.ts

Co-authored-by: Dan Onoshko <8caef9eaf9f1e3b8bd823c98178d7e06968d2341@gmail.com>

Co-authored-by: Dan Onoshko <8caef9eaf9f1e3b8bd823c98178d7e06968d2341@gmail.com>
gabelerner/canvg,canvg/canvg,canvg/canvg,canvg/canvg,canvg/canvg