Formatting.
Fix a bug when removing an arbitrary tag and the element cannot be found.