When using pipelines, avoid that the same file is parsed twice.

This happens, because query can result in more than one hit per file. Thanks
to Gertjan van Noord for reporting this.