Consider 'unknown' COM objects equal (fix for #4138)

This is a proposed fix for  #4138