Fix deletion of older revisions.

This commit makes sure all revisions will be deleted. New content blocks
could get the same id as a deleted version and older revisions could be
attached to this new content block.