Consider 'unknown' COM objects equal (#4138)

In Internet Explorer, objects at the other end of the COM bridge have type
'unkown'. This patches makes equals() skip these objects.