Fix `id` accessor for 1.8.7

Based on: http://www.fngtps.com/2007/using-openstruct-as-mock-for-activerecord/