Added NULL-pointer check to gw_client_hangup_event