PDFBOX-2530: fix ClassCastException in page content streams when in page display mode, as done by Khyrul Bashar in GSoC2015