When linking a texture directly to the material output, it's likely being done for the purpose of previewing. In that case, bias the heuristic towards not building a light tree, as it's likely not needed and slow on dense meshes.