Versioned now creates a new version if the version is 0

Hello,

Previously writing an object to staging and then publishing it resulted in a version number mismatch between staging and live. Now the code is changed to check for 0 as a version number.