Fixes #5243 - Store the content view next version

When destroying content view versions, we were keep track of the last version
number so we'd publish using version numbers that were deleted. With this
change, we'll store the next version number, increment it, and use it for new
versions.