Made null-safe TFIDF get helper method