KH-212: Prevent copying passive code elements

When new version of code element is created