don't write header if no respective value present

Signed-off-by: Sebastian Schüpbach <sebastian.schuepbach@unibas.ch>
3 jobs for master in 3 minutes and 59 seconds (queued for 3 seconds)