Fix potential crash

During some error cases, the GUI component raise an exception that
led to a crash because the code was trying to call Dispose() on
null pointer.
Forgot to update Debug precompiled version