content views - fix couple of bugs affecting publish/refresh/promote/con...

...sume

This commit contains 2 small changes to address regressions affecting
the publish/refresh/promotion/consumption of content views.

1. one is to address an error notice due to an invalid SQL during the
   promotion of a content view

2. is to address that the content view environment is not getting
   properly created during the saving of the version which occurs during
   publish/refresh/promote of content views.  Looked at options
   such as adding :validate=>true to the belongs_to :content_view
   in content_view_version.rb; however, it still would not trigger
   the creation; therefore, put the logic back at using the
   ContentViewEnvironment.create which will ensure the CVE is
   created.