Change the assert to check for more than 0 categories

This fixes issue #262