Solves problem with Spring Data interoperability.

When using same MongoDB instance with a Java application using Spring Data to access this instance, and try to also access it with mongo-persistor, Spring Data will break after first record is added through mongo-persistor. This patch solves this, and yet preserves ability to use more efficient _id mechanism of HEAD.