Incorrectly handled error check for widechars

According the the manpage, wget_wch returns ERR, instead of setting ch to ERR.