Ticket #3036: fix crash after entering a wrong SFTP password.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3036_sftp_wrong_password_crash'

* 3036_sftp_wrong_password_crash:
  Ticket #3036: fix crash after entering a wrong SFTP password.