Fixed crash when cancelling login popup.