Fix dialog not dismissing when failing to login due to no cookie
Handle invalid/missing download path directories

This also fixes the crash for users coming from the old configuration which was relative to the download path but which is now treated as an absolute path and thus will not be valid.