Rails 3.0 rescue response compatibility fix