Removes empty markup.