Undefined method error in `ProjectsController#destroy`

Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/503268

NoMethodError: undefined method `name' for nil:NilClass

        { name: user.name, email: user_email(user) }
                    ^^^^^
  from lib/gitlab/hook_data/project_builder.rb:69:in `owner_data'
  from lib/gitlab/hook_data/project_builder.rb:57:in `block in owners_data'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:71:in `each'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:71:in `block in find_each'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:138:in `block in find_in_batches'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:245:in `block in in_batches'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:229:in `loop'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:229:in `in_batches'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:137:in `find_in_batches'
  from activerecord (7.0.8) lib/active_record/relation/batches.rb:70:in `find_each'
  from lib/gitlab/hook_data/project_builder.rb:57:in `each'
  from lib/gitlab/hook_data/project_builder.rb:57:in `map'
  from lib/gitlab/hook_data/project_builder.rb:57:in `owners_data'
  from lib/gitlab/hook_data/project_builder.rb:47:in `project_data'
  from lib/gitlab/hook_data/project_builder.rb:28:in `build'
  from app/services/system_hooks_service.rb:38:in `build_event_data'
  from app/services/system_hooks_service.rb:5:in `execute_hooks_for'
  from app/services/projects/after_rename_service.rb:95:in `execute_system_hooks'
  from app/services/projects/after_rename_service.rb:45:in `execute'

It correlates with a deployment of !139281 (diffs) that touched this code.