Wrap TagList in a length check
If we're clearing tagList, check to see if it exists first