Fix undefined method `events` for nilClass.

When the recipient doesn't have an affiliate_partner record we end up
throwing an error as we try to log the event. Instead, lets not try to
add credits when that happens.

Change-Id: Ia6cfd3c91653ac4641c447c17726f9e4deeaf0d4