Delete pipeline via API returns 500 error

https://sentry.gitlab.net/gitlab/gitlabcom/issues/591762/

NoMethodError: undefined method `full_path' for #<Ci::Pipeline:0x00007fe1073d2d78>
  active_model/attribute_methods.rb:433:in `method_missing'
    match ? attribute_missing(match, *args, &block) : super
  ee/audit_event_service.rb:185:in `add_security_event_admin_details!'
    entity_path: @entity.full_path)
  ee/audit_event_service.rb:87:in `security_event'
    add_security_event_admin_details!
  ci/destroy_pipeline_service.rb:8:in `execute'
    AuditEventService.new(current_user, pipeline).security_event
  api/pipelines.rb:95:in `block (3 levels) in <class:Pipelines>'
    ::Ci::DestroyPipelineService.new(user_project, current_user).execute(pipeline)
...
(126 additional frame(s) were not displayed)

NoMethodError: undefined method `full_path' for #<Ci::Pipeline:0x00007fe1073d2d78>