When there is a subwiki without the blog application, the query that checks the categories structure throws error:
Failed to execute the [velocity] macro. Cause: [could not resolve property: category of: com.xpn.xwiki.objects.BaseObject].