[tudou] Improve error detection (closes #9175)