Fix an Exception when element is not an instance of TypeElement (so far ...

...I've only seen this for PackageSymbols)