Fix Task::PublishPDF interpreted "1 page" from logfile as  "0 pages".