fixes stack level too deep exception on action named 'status' rendering 'head :ok'

fixes https://github.com/rails/rails/issues/13905