Unit Tests: Fix error with empty category

Refs #7722
Merge branch 'fix/unit-tests-7722' into next

Fixes #7722