[IncidentSender] Fix referencing NULL pointer.

I fixed the code referencing NULL pointer found in issue 809.