Handle edge case with zero trigrams