Fixes #6635,BZ1114046 - Checking if content view is in environment

Was getting an error on content host create (undefined method `cp_id`) due to
the content view not being in the environment. This checks first for that by
saving the system.