Fixed a bug in application_controller.rb regarding I18n.locale