SERVER-14962 Fix variable name re-use discovered by coverity