Remove extra whitespace

- In order to match the markdown editor, remove
  all empty tags instead of just trailing ones.

The name "remove empty nodes" kind of makes it sound like that was supposed to work in the first place anyway....