Fix compatibility with spring-data-mongodb 1.2.x and 1.3.x