Added rudimentary error handling to archiveVersion

... for when tidy doesn't work