malformed custom theme may break the frontend
setting a custom theme of {}
appears to break the frontend, see https://discord.com/channels/1126590789322035230/1163467816284991591/1241353730390098011 and the preceding discussion
we should at the very least ignore such themes, maybe print an error to the console, even better validate them when setting
thanks to 3-for-free / rosey for discovering and investigating the problem