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.