perf report: Fix --task and --stat with pipe input