optimize component yield to noop when no template