Error 500 in showing access denied message: ActionView::Template::Error: key not found: :message

https://sentry.gitlap.com/gitlab/gitlabcom/issues/222814/

KeyError: key not found: :message
  /opt/gitlab/embedded/service/gitlab-rails/app/views/errors/access_denied.html.haml:1:in `fetch'
    - message = local_assigns.fetch(:message)
  /opt/gitlab/embedded/service/gitlab-rails/app/views/errors/access_denied.html.haml:1:in `_app_views_errors_access_denied_html_haml__141675146714339137_69857909865080'
    - message = local_assigns.fetch(:message)
  action_view/template.rb:145:in `block in render'
    view.send(method_name, locals, buffer, &block)
  active_support/notifications.rb:166:in `instrument'
    yield payload if block_given?
  action_view/template.rb:333:in `instrument'
    ActiveSupport::Notifications.instrument("#{action}.action_view", payload, &block)
...
(165 additional frame(s) were not displayed)

ActionView::Template::Error: key not found: :message

ActionView::Template::Error: key not found: :message