Fixed possible crash if a tag exists with no name