[IncidentSender] Fix referencing NULL pointer.
Merge pull request #810 from BlueSkyDetector/issue-809

[IncidentSender] Fix referencing NULL pointer.