TarsHeuristicCalculator bugfix : ensure returned value is not None