Add trigger_error to :x:element::__toString()

Using trigger_error() inside :x:element::__toString() because you
cannot throw errors inside __toString().