Web: set number to default if unselected
Web: colour phases in pie charts correctly
Web: check if log dir exists before getting logs

Previously, jobs not processed here had no log dir, and therefore
the web couldn't show their job_info page.