Fixed #20038 -- Better error message for host validation.