SERVER-11804 WriteResult#getBatchError returns the wrong code