Corrected null connection when debug mode is disabled.
Corrected null connection when debug mode is disabled.

GibraltarSoftware/Loupe.Agent.Core,GibraltarSoftware/Loupe.Agent.Core,GibraltarSoftware/Loupe.Agent.Core