FIX: User export category preferences on a deleted category. (PR #10573)

Tests from a1dd761bd97e748bff5b21d7347ff2a642409fc2 were incomplete and did not test a deleted category’s category_users record.

GitHub

Test failure is a flake.