Fix a possible crash when changing password.
https://git.gnome.org/browse/archive/accounts-dialog/commit/?id=adf5a77d5f4f5f0e94f0fad669ee7192d1a5f5f5