Fix a logic error in handling results of master password change dialog.