Fix ProjectFactoryImpl.findProject() bug

This caused gradle addon tests fail with 50% chance if this method was used.