Fix Rails 4 incompatibilty

When I am using Apartment with Rails 4, it errors because `ActiveRecord::StatementInvalid.new` now takes *at least* one argument. This patch is fairly simple and works with Rails 3 and Rails 4.