Main theme file check for legacy themes fixed.