Fixing error on renaming

When the maxVariant in the backlist is not a
VariantSymbol, it can be of any other type, not
only StringSymbol.