check document version
If the version of the document is newer than the one known by keymanager should I just give a warning?
This was provoking the creation of duplicated private keys in the past using an older bitmask with a newer storage.
(from redmine: created on 2016-06-01, closed on 2016-07-05, relates #8059 (closed))