Catch ActiveRecord::ActiveRecordError in job retry

Update our job retry loops to look for ActiveRecord::ActiveRecordError
instead of ActiveRecord::RecordNotFound. We do this because
Rails 3.1 was throwing ActiveRecord::StatementInvalid so the thought
here is we'll just catch the base ActiveRecord exception class instead.