Fix crash when using --path-filter

This fixes a crash when using --path-filter together with --list-symbols, as it used after it is increased.