diffhelpers: backport 9e40bc4c1bde from C implementation
9e40bc4c1bde just says "harden testhunk." I don't think this would be
the case, but it makes some sense to avoid negative index.
#require docutils gettext $ $TESTDIR/check-gendoc it checking for parse errors