[OE-4591] Don't set flash in console apps.