Fixed that preferences are not preserved when adding a user fails (#15552).
Authored by: jplang 2013-11-29
Parent: [r12349]
Child: [r12351]