Fix Leaf deleteText with embed tag nodes

Since there's only one test can you move these two lines into the anonymous function passed into it()?