Tests that text transformation applied to a non-text node does not result in crash.