NoMethodError: undefined method `access_checker_class' for nil:NilClass

https://sentry.gitlab.net/gitlab/devgitlaborg/issues/703957/

NoMethodError: undefined method `access_checker_class' for nil:NilClass
  api/internal.rb:62:in `block (2 levels) in <class:Internal>'
    access_checker_klass = repo_type.access_checker_class
  grape/endpoint.rb:57:in `call'
    method.bind(endpoint_instance).call
  grape/endpoint.rb:57:in `block (2 levels) in generate_api_method'
    method.bind(endpoint_instance).call
  active_support/notifications.rb:166:in `instrument'
    yield payload if block_given?
  grape/endpoint.rb:56:in `block in generate_api_method'
    ActiveSupport::Notifications.instrument('endpoint_render.grape', endpoint: endpoint_instance) do
...
(121 additional frame(s) were not displayed)

NoMethodError: undefined method `access_checker_class' for nil:NilClass