Fix crash when using --path-filter