Fix PDF index generation bug with XEP #1430