fix account_authorization_config api errors for rails 3

Also fix rails2 not sending the error_report_id back with the api json
response in test/development mode. This was already working in rails3
due to the different error response codepath.

Change-Id: If94d3a8a85e2d1cd1fb372076c02a058ec9c82cc
Reviewed-on: https://gerrit.instructure.com/30811
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Brian Palmer <brianp@instructure.com>
QA-Review: Brian Palmer <brianp@instructure.com>