Pruned some useless code in html5-upgrade

Pruned some choose branches after many occurrences of

Saxon reported static errors when trying to evaluate expressions
on the sequence (empty) content