SERVER-8014 Fix inspection of error object when adding users
Small cleanup to addUser shell helper