Fixes up logic for creating new versions (U4-2589 Save and Publish is not creating version of document)