SERVER-9468 Pull out bulk of CmdGetLastError::run() into helper