Pull THEME_NAME from envs tokens if it's there.

If the FEATURES['USE_CUSTOM_THEME'] flag is set but the
'THEME_NAME' is not set.  We get a compilation error during
cms gather assets.
Merge pull request #2494 from edx/feanil/fix_cms_gather_assets

Pull THEME_NAME from envs tokens if it's there.