Adding CDRStatsEnabled checking in case of internall used to avoid nil references