When running a KDE query, check that a term is present in the base text before trying to generate the estimate.