Adding compatibility with Rails 4 for AWS::Record::HashModel

requires ActiveModel only if not defined