Tagging a Legend in Revit

Any empty lists or null strings will produce errors in any script. Get rid of it.