Fixes notice in createTagsFromMetadata().
Merge pull request #1135 from elinw/tagsfrommetadata

Fixes notice in createTagsFromMetadata().