Ensure HTMLElementStack fails gracefully if it has a non-Element.