fixes #6871 / BZ 1125397 - capsule - add error case for content sync

If the user attempts to sync a lifecycle environment that isn't attached
to the capsule, generate an error to the user.