Fix exception triggered after ensureIndexes called : 'safe' option is deprecated for driver version >= 1.3.0