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

If the user attempts to sync a lifecyle environment that isn't attached
to the capsule, generate an error to the user.
Merge pull request #4514 from bbuckingham/issue-6871

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