1. Added validation in addTag method of TrackedObject class.
2. Simple refactoring in setTags method of TrackedObject class.