only delete revisions below current one
Merge pull request #1 from beedub/master

Fix bug where fresh documents without revision are not stored