[HVA-10537] adding nil checks for defer block
[HVA-10537] fixing the defer use
Merge pull request #4 from HuminInc/HVA-10537

HVA-10537 - panic due to lack of checks in send_grid library