html.parser.analyzer: make find-between* work on nested tags.

Here is the patch I mentioned in #862 as a proper pull request.