Remove main.js requirement for themes

This is for #8626.
This is obviated by my other comment, but just fyi: we should never use `JSON.parse()` in the validator without a try/catch wrapper, since this code also runs on the Extention Registry server and any uncaught exceptions could cause Node to shut down.