Extract adding content view version to environment into Dynflow

Alse fix cases when there is no PuppetEnvironment for the content view version