Backlog-407 -  Added more defensive code around restoring the password w...

...hen a user is just trying to create a new connection vs when editing an existing one.