Cpp: Fix missing variable when empty cpp filter.