Fix use of header template in mail gsp

* fix execDetails if no job is available