health-server: Don't use job['name'] everywhere

It's better checking values in a single part of the code instead of
using it everywhere.