[CDA-68] - Added check for null response when setting headers
Merge pull request #27 from pamval/master

[CDA-68] - Added check for null response when setting headers