Fix bug where fresh documents without revision are not stored

Mirrors ruote-sequel code as well: https://github.com/jmettraux/ruote-sequel/blob/master/lib/ruote/sequel/storage.rb#L158