docs/gen-html-index: Make HTML::TreeBuilder::XPath optional again

7782db92 "docs/gen-html-index: Extract titles from HTML documents"
requires HTML::TreeBuilder::XPath.

This is sadly not as widely available as I had hoped.  Work around
this problem by making the use of this module optional: instead of
`use'ing at the toplevel, we `require' it in the eval.  If it's not
present, then the title is simply not extracted and the filename is
used as before, which is tolerable.

Reported-by: Doug Goldstein <cardoe@cardoe.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
16 jobs for ian-testing in 108 minutes and 8 seconds (queued for 58 seconds)
latest
Status Name Job ID Coverage
  Build
passed centos-7-2-gcc #62853988

00:14:28

passed centos-7-2-gcc-debug #62853989

00:11:31

passed debian-jessie-clang #62853990

00:15:23

passed debian-jessie-clang-debug #62853991

00:11:02

passed debian-jessie-gcc #62853993

00:18:15

passed debian-jessie-gcc-debug #62853994

00:13:22

passed debian-stretch-clang #62853995

00:19:45

passed debian-stretch-clang-debug #62853996

00:19:50

passed debian-stretch-gcc #62853997

00:17:29

passed debian-stretch-gcc-debug #62853998

00:12:57

passed ubuntu-trusty-gcc #62854000

00:17:16

passed ubuntu-trusty-gcc-debug #62854001

00:11:22

passed ubuntu-xenial-clang #62854003

00:17:11

passed ubuntu-xenial-clang-debug #62854005

00:16:39

passed ubuntu-xenial-gcc #62854007

00:14:09

passed ubuntu-xenial-gcc-debug #62854008

00:13:36