Fixed #23663 -- Initialize output streams for BaseCommand in __init__().