Disable DebugHandler when the profiler is disabled, fixes #37