SERVER-11056 Fix unused variable warning in non-debug build