SERVER-10159 Don't rewrite document if all mods are no-ops.