Ignore 'unknown' COM objects in equals (#4138)

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