Remove main.js requirement for themes

This is for #8626.
By the time this runs, the JSON has already been successfully validated by `validatePackageJSON` and an error thrown if it is invalid, but does throwing an error stop execution? My first thought is it would, just as in other programming languages.