Fixing warning edge case

Warning in tags.py assumes there is an id attribute,  but id attribute
is not generally required by any tags.