Cleanup event references on AgentLogs when Events are deleted

AgentLogs were erroring after referenced events were deleted.