Remove possible null pointer dereference
Add an empty list if there are no subcategories
Merge pull request #1063 from ArloL/patch-21

Potential null pointer exception when using the CategoriesProcessor