Detect when cache contains an empty flag list.
Merge pull request #124 from grokcode/patch-1

Detect when cache contains an empty flag list.