Initialise ret to kCategoryNone in QueryCategoryType. Fixes coverity issue 1023897