When calculating an integral, an AccessViolation occurs

Hello, I have a problem with exception handling when calculating an integral. The first exception EExpressionIntegral is thrown correctly, but then a series of AccessViolation starts. The debugger shows that the problem is somewhere near line 13945 of the Analytix.Syntactic.Expressions unit (more details: in FreeAndNil(intg1), the intg1 object has an undefined value).

An example for calculating an integral with an error is given below.

q=1
x=1
y=2
z=3
f(x y)=3*q*z^3/(2*Pi*(x^2+y^2+z^2)^(5/2))
∫f(x y)∂x

I hope this is easy to fix, so that only the EExpressionIntegral exception remains.

I'm using this quick fix, but probably need another solution:

  ..
  finally
    FreeAndNil(opnd);
    if ExceptObject = nil then FreeAndNil(intg1);
    if ExceptObject = nil then FreeAndNil(intg2);
    if ExceptObject = nil then FreeAndNil(l);
  end;