Main theme file check for legacy themes fixed.
Merge pull request #2045 from phaidon/theme-file-check-fix

Main theme file check for legacy themes fixed.