prevent setting component type if not needed (even if it might be null, but special classnodes may not expect this call)