Fixed bug where PDF icons were being generated even if they already existed.