I get the following error (dump MongoDB 3.2) (restore MongoDB 3.4):
Failed: ngivr-dev.ledgerhelpers: error creating indexes for ngivr-dev.ledgerhelpers: **cr
find . -type f -name "*.metadata.json" -exec sed -i 's/,"safe":null//g' {} \;
This works and you will keep your indexes! It find all files in the present location (.) then using the same process (exec) replace in file (sed -i) according to the following regex which is basically saying all occurrences of "safe":null with nothing.
Replace the "." argument with the path to the directory where your mongodb exports are stored.