Fix IdentityMap middleware

Global identity map should be cleared
instead of HydraAttribute::HydraAttribute.identity_map