Delete a strange empty tag when no one is selected

With this patch

![image](https://f.cloud.github.com/assets/877218/2526333/803c7742-b4f9-11e3-9e07-7d772eada84f.png)

Without it

![image](https://f.cloud.github.com/assets/877218/2526378/f0011d08-b4f9-11e3-8016-2537a1e6bca1.png)