Fix Hirb breaking on AR tables with no id column

Hirb kills a puppy every time you give it an ActiveRecord::Base table with no id column. I've heard that when a puppy dies it cries out 'comparison of String with nil failed'! This patch will save many puppies by compacting an object's attribute keys before comparing it with the object's class's column_names.