Fix test:prepare launch to depend on the ActiveRecord 'defined?'

Fixes issue #794 in the same manner as in this old commit:

https://github.com/rspec/rspec-rails/commit/a5949a566862fa0ac2ec4148f52ea05cc64352a9