When there is no match error and print the tag

Before this was raising a NoneType has no attribute groupdict.

Change-Id: Iee3b97a6980afe567b9c55e69043612da9d66008
Merge "When there is no match error and print the tag"