Fix 'no_category is integer' error on no parent_id