Check if COM class is supported before using it (bug #3762)