Fixed memory corruption issues that caused random hangs when loading a scene with an active OpenIGTLink connection