check for NULL on stat_cache_value_set