Fixed the bug that can not get tag value when the tag key contain `.` (#499)
* Fixed the bug that can not get tag value when the tag key contain `.`
* Refactor TagManager class to improve code readability
---------
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>