fix for GPMONGODB-358 "When persisting dynamic attributes, get error"