Fixed segfault (regression from last commit) when TSManager is enabled.
The segfault affected only developers because it needs to be enabled in the sources.