Fix bug with project-rescan for targets without buffers