[PATCH] testbot: Only send an email when a job is really done.