[Installer] Fix issue inheriting pods into empty target

Fixes https://github.com/CocoaPods/CocoaPods/issues/2591