I submitted a patch that changes application.rb to application_controller.rb. The patch fixes the problem where a controller referenced before 'require "application"' will cause an exception.
The patch causes no new test failures and I've also manually tested it by creating a sample application and running it, running script/ console and running script/performance/request.