Write Headers only when its not a PipedOutput

Leads to a nil pointer reference otherwise, because PipeRequest do not
have a valid RequestWriter