Fixed bug that causes script to exit if it can't find a tag.