html.lang: fix handling of the end of quoted attributes

The included contexts (xml:entity, xml:character-reference and
embedded-lang-hook) have a higher priority than the <end> of the
attribute.
And when <end> is reached, it ends also the parent context (the
complete attribute).

https://bugzilla.gnome.org/show_bug.cgi?id=565524