Process returning NULL on invalid n or no n-grams.