reduce.py: fix bug in final print

The only case I could think of when I *wouldn't* want to print after
processing stdin (all mapped lines) was if there *were no mapped lines*.