SERVER-10471 Correctly save result of function call in newRunQuery

Return value of getRunner() was being discarded by destruction of
shadow variable.