Fix exception triggered after ensureIndexes() call : 'safe' option is deprecated for driver versions >= 1.3.0