Fixing api call for allCategories.
* Should resolve with empty array if no categories