Avoid crashing when a false positive path is found.

The building process was crashing when a good path was found but not the one with the `component.json` file.

Might happen when multiple look up paths are set for multiple local component.