Fix pdf creation on Analyses retraction due to QC fail test

https://github.com/bikalabs/Bika-LIMS/commit/82c2a742acc88a508263b525a0327f6c46880c64#diff-d4f092ce795eba272ac7688b6bcac692L334#diff-d4f092ce795eba272ac7688b6bcac692L334