Bug was a missing ++i line in a new range for loop added in commit e2e2f4c8 "Return errors from importmulti if complete rescans are not successful"