This fixes an issue seen in Outlook 365 where the password prompt appears to lock up.
Technically this fixes a regression introduced in 25906eedd8679fdb474976563f4a05a92e11bbd6, but I think Outlook had other issues that would have masked this one at the time.