Change the assert to check for more than 0 categories
This fixes issue #262
Merge pull request #263 from bobsilverberg/fix_cats

Change the assert to check for more than 0 categories