Hardens the kde() method to gracefully handle terms that aren't present in the text.