Reproduced issue in unit test, verified functionality still works manually
### Submitter checklist
- [ ] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [ ] Ensure that the pull request title represents the desired changelog entry
- [ ] Please describe what you did
- [ ] Link to relevant issues in GitHub or Jira
- [ ] Link to relevant pull requests, esp. upstream and downstream changes
- [ ] Ensure you have provided tests - that demonstrates feature works or fixes the issue
Resolves https://github.com/jenkinsci/theme-manager-plugin/pull/171#issuecomment-1686954162
Testing done
Reproduced issue in unit test, verified functionality still works manually