Make sure the category child ids are an array before iterating.
Merge pull request #2269 from vanilla/hotfix/category-childids

Make sure the category child ids are an array before iterating.