Fix HashImitatable.

When undefined attribute keys were updated through
a method like `update` or `merge!` it was raising
a NoMethodError.

Follow up to #1376.