Fix use of neighborhood density with words not in corpus