SERVER-8046 Copy field names before potentially invalidating them