[ORB-27] fixed bug with generating PDF thumbnails