Fixing a bug with generating keyterms

Keyterms weren't being recognized for paragraphs with only one sub-parapgraph. I couldn't figure it out until I discovered this lovely gem.