Replace guard to ensure developer doesn't try to find an object that wasn't set up
Expect id to exist in attribute_names when using ActiveRecord 4