Due to #2131, this line should read `if env['FEATURES'].get("USE_CUSTOM_THEME", False):`