PDFBOX-2530: fixed IndexOutOfBoundsException if there is only one search result, as done by Khyrul Bashar in GSoC2015