This fixed build with wxUSE_CREDENTIALDLG==1 but wxUSE_WEBREQUEST==0. No real changes, this commit just moves the code around.