Fixed bug which displayed undefined if a tag had not been provided