Filter whitespace nodes before wrap.

Removing whitespace nodes to prevent empty span wraps.