Only set tagTypeId and tagTypeName when they exist
Merge pull request #5 from christeredvartsen/master

Fix code that generates E_NOTICE's