[TargetIntegrator] Ensures that the user project is not saved when there are no user targets integrated.

Closes https://github.com/CocoaPods/CocoaPods/issues/2561.
Closes https://github.com/CocoaPods/CocoaPods/issues/2593.

\c @alloy