Wrong handling of FPDI useTemplate result fixed