Empty topics after a successful backup restore

It’s good that you found the reason for the problem.

I’d consider it a bug if you restored the backup on the exact same version of Discourse. Was this the case? When you restore a backup from an older version of Discourse on a newer version of Discourse, you should expect that the system behaves differently.

Did you report the CSP problems to the authors of the theme components yet? That might at least prevent other people from experiencing the same issue.