fix err assignment in mongodump