html_untag: add a test for cast failure case