MOB-1891

You can cache the `res.headers[healthCheckHttpMessageHeader]` in variable and also take care of the case when the header is not set.